package thread.fenjiesuoyufenduansuo;

/**
 * 方法内的局部锁  特性
 *
 *
 * */
public class Test03 {


    public static void main(String[] args){
        DecompossClazz2 decompossClazz2 = new DecompossClazz2();

        Thread thread01 = new Thread(new Runnable() {
            @Override
            public void run() {
                decompossClazz2.addComputer("a");
            }
        });

        Thread thread02 = new Thread(new Runnable() {
            @Override
            public void run() {
                decompossClazz2.addComputer("b");
            }
        });

        thread01.start();
        thread02.start();
    }

}
